package com.whq.thrift.api.web.admin.db.consumelog;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;

public interface StatConsumeHourApiDataMapper {
	@SelectProvider(type = StatConsumeHourApiDataSqlProvider.class, method = "getSelectRecordSql")
	@Results(value={
		@Result(property="id",column="id"),
		@Result(property="dataDate",column="data_date"),
		@Result(property="dataHour",column="data_hour"),
		@Result(property="api",column="api"),
		@Result(property="errorCode",column="error_code"),
		@Result(property="ip",column="ip"),
		@Result(property="requestCount",column="request_count"),
		@Result(property="createTime",column="create_time")
	})
	public List<StatConsumeHourApiData> findRecrodByMap(Map<String, Object> whereParams);
	
	@SelectProvider(type = StatConsumeHourApiDataSqlProvider.class, method = "getSelectCountSql")
	public int findRecrodByCount(Map<String, Object> whereParams);
}
